package bootstrap

import (
	"grpc.getaway.adminspro.padmins.com/internal/api/module/admin/container"
	"grpc.getaway.adminspro.padmins.com/internal/api/module/admin/controller/admin"
	"grpc.getaway.adminspro.padmins.com/internal/api/module/admin/controller/adminLog"
	"grpc.getaway.adminspro.padmins.com/internal/api/module/admin/controller/adminResource"
	"grpc.getaway.adminspro.padmins.com/internal/api/module/admin/controller/adminRole"
	"grpc.getaway.adminspro.padmins.com/internal/api/module/admin/controller/auth"
)

var routers = map[string]func(c *container.Context) (interface{}, error){
	// 账号登录
	"auth.login":               auth.Login,
	"auth.logout":              auth.Logout,
	"auth.getPicCaptchaConfig": auth.GetPicCaptchaConfig,
	"auth.getInfo":             auth.GetInfo,

	// 管理员
	"admin.admin.index":  admin.Index,
	"admin.admin.list":   admin.List,
	"admin.admin.detail": admin.Detail,
	"admin.admin.add":    admin.Add,
	"admin.admin.edit":   admin.Edit,
	"admin.admin.del":    admin.Del,
	"admin.admin.multi":  admin.Multi,

	// 角色组
	"admin.role.index":    adminRole.Index,
	"admin.role.list":     adminRole.List,
	"admin.role.detail":   adminRole.Detail,
	"admin.role.add":      adminRole.Add,
	"admin.role.edit":     adminRole.Edit,
	"admin.role.del":      adminRole.Del,
	"admin.role.multi":    adminRole.Multi,
	"admin.role.resource": adminRole.Resource,

	// 角色组
	"admin.resource.index":  adminResource.Index,
	"admin.resource.list":   adminResource.List,
	"admin.resource.detail": adminResource.Detail,
	"admin.resource.add":    adminResource.Add,
	"admin.resource.edit":   adminResource.Edit,
	"admin.resource.del":    adminResource.Del,
	"admin.resource.multi":  adminResource.Multi,

	// 操作日志
	"admin.log.index":  adminLog.Index,
	"admin.log.detail": adminLog.Detail,
	"admin.log.del":    adminLog.Del,
}
